package com.suning.app.snpaasadmin.pojo;

import java.io.Serializable;

public class TemSer implements Serializable {
    private Integer id;

    private Integer temId;

    private Integer serId;

    private String defaultVal1;

    private String defaultVal2;

    private String defaultVal3;

    private String defaultVal4;

    private String defaultVal5;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTemId() {
        return temId;
    }

    public void setTemId(Integer temId) {
        this.temId = temId;
    }

    public Integer getSerId() {
        return serId;
    }

    public void setSerId(Integer serId) {
        this.serId = serId;
    }

    public String getDefaultVal1() {
        return defaultVal1;
    }

    public void setDefaultVal1(String defaultVal1) {
        this.defaultVal1 = defaultVal1 == null ? null : defaultVal1.trim();
    }

    public String getDefaultVal2() {
        return defaultVal2;
    }

    public void setDefaultVal2(String defaultVal2) {
        this.defaultVal2 = defaultVal2 == null ? null : defaultVal2.trim();
    }

    public String getDefaultVal3() {
        return defaultVal3;
    }

    public void setDefaultVal3(String defaultVal3) {
        this.defaultVal3 = defaultVal3 == null ? null : defaultVal3.trim();
    }

    public String getDefaultVal4() {
        return defaultVal4;
    }

    public void setDefaultVal4(String defaultVal4) {
        this.defaultVal4 = defaultVal4 == null ? null : defaultVal4.trim();
    }

    public String getDefaultVal5() {
        return defaultVal5;
    }

    public void setDefaultVal5(String defaultVal5) {
        this.defaultVal5 = defaultVal5 == null ? null : defaultVal5.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TemSer other = (TemSer) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTemId() == null ? other.getTemId() == null : this.getTemId().equals(other.getTemId()))
            && (this.getSerId() == null ? other.getSerId() == null : this.getSerId().equals(other.getSerId()))
            && (this.getDefaultVal1() == null ? other.getDefaultVal1() == null : this.getDefaultVal1().equals(other.getDefaultVal1()))
            && (this.getDefaultVal2() == null ? other.getDefaultVal2() == null : this.getDefaultVal2().equals(other.getDefaultVal2()))
            && (this.getDefaultVal3() == null ? other.getDefaultVal3() == null : this.getDefaultVal3().equals(other.getDefaultVal3()))
            && (this.getDefaultVal4() == null ? other.getDefaultVal4() == null : this.getDefaultVal4().equals(other.getDefaultVal4()))
            && (this.getDefaultVal5() == null ? other.getDefaultVal5() == null : this.getDefaultVal5().equals(other.getDefaultVal5()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTemId() == null) ? 0 : getTemId().hashCode());
        result = prime * result + ((getSerId() == null) ? 0 : getSerId().hashCode());
        result = prime * result + ((getDefaultVal1() == null) ? 0 : getDefaultVal1().hashCode());
        result = prime * result + ((getDefaultVal2() == null) ? 0 : getDefaultVal2().hashCode());
        result = prime * result + ((getDefaultVal3() == null) ? 0 : getDefaultVal3().hashCode());
        result = prime * result + ((getDefaultVal4() == null) ? 0 : getDefaultVal4().hashCode());
        result = prime * result + ((getDefaultVal5() == null) ? 0 : getDefaultVal5().hashCode());
        return result;
    }
}